﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmManualesPartesVehiculosModelo.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmManualesPartesVehiculosSistemaModelo" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPager" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDocking" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

    </script>
    <script type="text/javascript">
        function soloLetras(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
            especiales = [38, 40, 41, 47, 46];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Administración de modelo</div>
    </div>
    <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
    <div class="content-form">
        <table>
            <tr>
                <td class="filas2">
                    <asp:UpdatePanel runat="server">
                        <ContentTemplate>
                            <dx:ASPxButton ID="btnAgregar" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" OnClick="btnAgregar_Click">
                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupAgregarMo.Show();
}" />
                                <Image Url="~/Images/add2.png">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnAnular" runat="server" Text="Anular" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        AutoPostBack="False">
                        <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Show();
}" />
                        <Image Url="~/Images/delete2.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnModificar" runat="server" Text="Modificar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" OnClick="btnModificar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        AutoPostBack="False">
                        <Image Url="~/Images/edit2.gif">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnDescargarManaual" runat="server" Text="Descargar manual" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        OnClick="btnDescargarManaual_Click" AutoPostBack="False">
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        OnClick="btnSalir_Click" AutoPostBack="False">
                        <Image Url="~/Images/logout.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <table style="width: 100%;">
            <tr style="width: 100%;">
                <td style="width: 50%;" valign="top">
                    <asp:UpdatePanel runat="server">
                        <ContentTemplate>
                            <dx:ASPxRoundPanel ID="ASPxRoun2" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                GroupBoxCaptionOffsetY="-19px" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Height="100%">
                                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                </HeaderStyle>
                                <PanelCollection>
                                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxGridView ID="gvSisModelo" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" OnAfterPerformCallback="gvModelo_AfterPerformCallback"
                                            OnPageIndexChanged="gvModelo_PageIndexChanged" Width="100%" KeyFieldName="ID_MODELO"
                                            OnFocusedRowChanged="gvSisModelo_FocusedRowChanged" EnableCallBacks="False">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="Tipo rueda" FieldName="TIP_NUM_RUEDA" VisibleIndex="1"
                                                    Width="100px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" VisibleIndex="3"
                                                    Width="200px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Marca" FieldName="DES_MARCA" VisibleIndex="2"
                                                    Width="100px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_MODELO" VisibleIndex="0" Width="10px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="DES_NUM_RUEDA" Visible="False" VisibleIndex="5">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Des.manual" VisibleIndex="4" Width="100px">
                                                    <DataItemTemplate>
                                                        <dx:ASPxHyperLink ID="hplmanual" runat="server" Text='<%# (Eval("DES_MANUAL")==null)? "NO": "SI" %>' />
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior AllowFocusedRow="True" ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsPager PageSize="19">
                                            </SettingsPager>
                                            <Settings ShowFilterRow="True" />
                                            <Settings ShowFilterRow="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxRoundPanel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td style="width: 50%;" valign="top">
                    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                        GroupBoxCaptionOffsetY="-19px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        HeaderText="" HorizontalAlign="Center">
                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                        <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
                        </ContentPaddings>
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                            <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                            </Paddings>
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                                    <dx:ASPxImage ID="Image" runat="server" Height="300px" Width="350px">
                                                    </dx:ASPxImage>
                                                    <asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick">
                                                    </asp:Timer>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    Descripción:
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="lblDescripcion" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Marca:
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="lblMarca" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Numero ruedas:
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="lblNumeroRueda" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Manual:
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="lblManual" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <table>
                                    <tr>
                                        <td class="filas2">
                                            <dx:ASPxUploadControl ID="UploadCargaManual" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                OnFileUploadComplete="UploadCargaManual_FileUploadComplete" ShowUploadButton="false"
                                                Enabled="False">
                                                <ValidationSettings MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                                                </ValidationSettings>
                                                <Paddings Padding="4px" />
                                            </dx:ASPxUploadControl>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas2" align="right">
                                            <dx:ASPxButton ID="btnAgregarManual" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" OnClick="btnAgregarManual_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Text="Cargar manual" AutoPostBack="False" Width="150px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
                </td>
            </tr>
        </table>
        <table style="width: 100%;">
            <tr>
                <td style="width: 50%;" valign="top">
                    <dx:ASPxGridView runat="server" ClientVisible="False" KeyFieldName="ID_IMAGEN" AutoGenerateColumns="False"
                        ID="gvListarImgenes" Theme="Office2010Blue" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="ID_IMAGEN" ShowInCustomizationForm="True" VisibleIndex="0">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="ID_MODELO" ShowInCustomizationForm="True" VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="DES_IMAGEN" ShowInCustomizationForm="True"
                                VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                    </dx:ASPxGridView>
                </td>
                <td style="width: 50%;">
                    <asp:UpdatePanel runat="server">
                        <ContentTemplate>
                            <dx:ASPxPopupControl ID="PopupAgregarMo" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" HeaderText="Agregar" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                ClientInstanceName="PopupAgregarMo" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" Theme="Office2010Blue" ShowPageScrollbarWhenModal="True">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td class="filas2">
                                                    Nombre:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxTextBox ID="txtModelo" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="filas2">
                                                    Marca:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxComboBox ID="cboMarca" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="Seleccione" />
                                                            <dx:ListEditItem Text="Bajaj" Value="Bajaj" />
                                                            <dx:ListEditItem Text="Yumbo" Value="Yumbo" />
                                                            <dx:ListEditItem Text="Kawasaki" Value="Kawasaki" />
                                                            <dx:ListEditItem Text="Boxer" Value="Boxer" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnPopupBuscar" runat="server" Text="Buscar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        AutoPostBack="False" OnClick="btnPopupBuscar_Click">
                                                        <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
}" />
                                                        <Image Url="~/Images/search.png">
                                                        </Image>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="5">
                                                    <dx:ASPxGridView ID="gvModelos" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" KeyFieldName="ID_MODELO" OnAfterPerformCallback="gvModelos_AfterPerformCallback"
                                                        OnPageIndexChanged="gvModelos_PageIndexChanged" Width="100%">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                                VisibleIndex="0">
                                                                <ClearFilterButton Visible="True">
                                                                </ClearFilterButton>
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" ShowInCustomizationForm="True"
                                                                VisibleIndex="4">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Tipo rueda" FieldName="TIP_NUM_RUEDA" ShowInCustomizationForm="True"
                                                                VisibleIndex="2">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Marca" FieldName="DES_MARCA" ShowInCustomizationForm="True"
                                                                VisibleIndex="5">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_MODELO" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="3">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MODELO" ShowInCustomizationForm="True"
                                                                VisibleIndex="1">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" />
                                                        <Settings ShowFilterRow="True" ShowFilterRowMenu="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td class="filas2" style="width: 50%;" align="right">
                                                    <dx:ASPxButton ID="btnPopAgregar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnPopAgregar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar">
                                                        <ClientSideEvents Click="function(s, e) {
PopupAgregarMo.Hide();	
e.processOnServer = true;
}" />
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas2" style="width: 50%;" align="left">
                                                    <dx:ASPxButton ID="btnCancelar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Cancelar" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupAgregarMo.Hide();
}" />
                                                        <Image Url="~/Images/sel_cerrar.png">
                                                        </Image>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxPopupControl ID="popupMsj" runat="server" AllowDragging="True" ClientInstanceName="popupMsjs"
                        CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                        EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                        Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                        SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px" Theme="Office2010Blue">
                        <HeaderImage Url="~/Images/icon_message.png">
                        </HeaderImage>
                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                        </LoadingPanelImage>
                        <CloseButtonStyle>
                            <Paddings Padding="0px" />
                        </CloseButtonStyle>
                        <ContentStyle>
                            <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                            <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                <br />
                                <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                    <PanelCollection>
                                        <dx:PanelContent ID="Panelpopup" runat="server">
                                            <table align="center">
                                                <tr>
                                                    <td colspan="2">
                                                        <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                            <table align="center">
                                                <tr>
                                                    <td align="center" style="width: 215px">
                                                        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" AutoPostBack="False"
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) {popupMsjs.Hide();}" />
                                                            <Image Url="~/Images/ok.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                </td>
                <td>
                    <dx:ASPxPopupControl runat="server" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                        SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Modal="True" CloseAction="CloseButton"
                        AllowDragging="True" ClientInstanceName="PopupMsjConfirmacion" HeaderText="Mensaje"
                        LoadingPanelText="Cargando&amp;hellip;" CssPostfix="PlasticBlue" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                        Width="300px" ID="PopupMsjConfirmacion" EnableViewState="False" Theme="Office2010Blue">
                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                        </LoadingPanelImage>
                        <CloseButtonStyle>
                            <Paddings Padding="0px"></Paddings>
                        </CloseButtonStyle>
                        <ContentStyle>
                            <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                            </Paddings>
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                <dx:ASPxPanel runat="server" DefaultButton="btCreate" ID="ASPxPanel6">
                                    <PanelCollection>
                                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                            <table style="width: 100%;" class="filas">
                                                <tr>
                                                    <td style="width: 100%;" class="filas2">
                                                        ¿Estás seguro de anular este registro ?
                                                    </td>
                                                </tr>
                                            </table>
                                            <table style="width: 100%;">
                                                <tr>
                                                    <td class="filas2" align="right">
                                                        <dx:ASPxButton runat="server" AutoPostBack="False" ClientInstanceName="btnPopAceptar"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar"
                                                            CssPostfix="Office2010Blue" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            Width="10px" ID="btnPopAceptar" OnClick="btnPopAceptar_Click">
                                                            <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
	e.processOnServer = true;
}"></ClientSideEvents>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td class="filas2">
                                                        <dx:ASPxButton runat="server" AutoPostBack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Cancelar" CssPostfix="Office2010Blue" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            Width="10px" ID="btnPopCancelar">
                                                            <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}"></ClientSideEvents>
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
